import 'package:equatable/equatable.dart';
import 'package:flutter_weather_bg/utils/WeatherUtil.dart';

/// 主页面的 基本数据
class ManagerData extends Equatable {
  final String cityFlag;
  final String cityName;
  final String todayTemperature;
  final String currentTemperature;
  final bool isLocated;
  WeatherType weatherType;
  final String weatherDesc;

  ManagerData(
      {this.cityFlag,
        this.cityName,
        this.todayTemperature,
        this.currentTemperature,
        this.isLocated,
        this.weatherType,
        this.weatherDesc});

  @override
  String toString() {
    return 'ManagerData{cityFlag: $cityFlag, cityName: $cityName, todayTemperature: $todayTemperature, currentTemperature: $currentTemperature, isLocated: $isLocated, weatherType: $weatherType, weatherDesc: $weatherDesc}';
  }

  @override
  List<Object> get props => [cityFlag];
}
